package com.dinpay.plugin.activity;

import android.content.Intent;
import android.graphics.Color;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.Button;
import com.dinpay.plugin.widget.CleanEditText;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

final class e
  implements View.OnTouchListener
{
  e(BindMobileActivity paramBindMobileActivity)
  {
  }

  public final boolean onTouch(View paramView, MotionEvent paramMotionEvent)
  {
    if (paramMotionEvent.getAction() == 0)
      BindMobileActivity.a(this.a).setBackgroundColor(Color.parseColor("#0170D9"));
    while (true)
    {
      return false;
      if (paramMotionEvent.getAction() == 1)
      {
        BindMobileActivity.a(this.a).setBackgroundColor(Color.parseColor("#258EE5"));
        BindMobileActivity localBindMobileActivity = this.a;
        BindMobileActivity.a(localBindMobileActivity, BindMobileActivity.f(BindMobileActivity.b(this.a).getText().toString()));
        if (!DinpayBaseActivity.e(BindMobileActivity.c(this.a)))
        {
          String str = BindMobileActivity.c(this.a);
          if (Pattern.compile("(13[0-9]|15[012356789]|18[012356789]|14[57])[0-9]{8}").matcher(str).matches())
          {
            Intent localIntent = new Intent(this.a, DinpayPayActivity.class);
            localIntent.putExtra("mobileNumber", BindMobileActivity.c(this.a));
            localIntent.putExtra("xml", BindMobileActivity.d(this.a));
            localIntent.putExtra("gateway_id", this.a.b);
            localIntent.putExtra("orderkey", this.a.c);
            localIntent.putExtra("merchantname", this.a.d);
            localIntent.putExtra("ActivityName", this.a.e);
            this.a.startActivity(localIntent);
          }
          else
          {
            this.a.g("手机号码格式不正确");
          }
        }
        else
        {
          this.a.g("手机号码不能为空");
        }
      }
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.activity.e
 * JD-Core Version:    0.6.2
 */